﻿using System;
using System.Runtime.CompilerServices;

namespace TestDxfDocument.toolingsystem
{
    /// <summary>
    /// GB/T 10944.1-2013 表1
    /// </summary>
    public class AorUShankSize
    {
        //锥柄号 40 型式 A 的尺寸参数
        double b = 16.1;
        double d1 = 44.45;
        double d2 = 17;
        double d3 = 50;
        double d4 = 56.25;
        double d5 = 63.55;
        double d6 = 72.3;
        double d7 = 16;
        double d11 = 19;
        double e = 35;
        double f = 15.9;
        double j = 18.5;
        double l1 = 68.4;
        double l2 = 32;
        double l3 = 42.5;
        double l4 = 8.2;
        double l5 = 22.7;
        double l6 = 25;
        double l7 = 1.6;
        double r1 = 1.2;
        double r2 = 1;
        double r3 = 1.6;
        double u = 19.1;
        double v = 11.1;
        double x = 3.75;
        double y = 3.2;

        public static AorUShankSize getparam(String type)
        {
            AorUShankSize AUSS = new AorUShankSize();

            if (type.Equals("JT30"))
            {
                AUSS.d1 = 31.75;
                AUSS.d2 = 13;
                AUSS.d3 = 45;
                AUSS.d4 = 44.3;
                AUSS.d5 = 50;
                AUSS.d6 = 59.3;
                AUSS.d7 = 12;
                AUSS.d11 = 14.5;
                AUSS.j = 15;
                AUSS.l1 = 47.8;
                AUSS.l2 = 24;
                AUSS.l3 = 33.5;
                AUSS.l4 = 5.5;
                AUSS.l5 = 16.5;
                AUSS.l6 = 18.8;
                AUSS.r1 = 0.6;
                AUSS.r2 = 0.8;
            }
            if (type.Equals("JT45"))
            {
                AUSS.b = 19.3;
                AUSS.d1 = 57.15;
                AUSS.d2 = 21;
                AUSS.d3 = 63;
                AUSS.d4 = 75.25;
                AUSS.d5 = 82.55;
                AUSS.d6 = 91.35;
                AUSS.d7 = 20;
                AUSS.d11 = 23.5;
                AUSS.j = 24;
                AUSS.l1 = 82.7;
                AUSS.l2 = 40;
                AUSS.l3 = 52.5;
                AUSS.l4 = 10;
                AUSS.l5 = 29.1;
                AUSS.l6 = 31.3;
                AUSS.r1 = 2;
                AUSS.r2 = 1.2;
            }
            if (type.Equals("JT50"))
            {
                AUSS.b = 25.7;
                AUSS.d1 = 69.85;
                AUSS.d2 = 25;
                AUSS.d3 = 80;
                AUSS.d4 = 91.25;
                AUSS.d5 = 97.5;
                AUSS.d6 = 107.25;
                AUSS.d7 = 24;
                AUSS.d11 = 28;
                AUSS.j = 30;
                AUSS.l1 = 101.75;
                AUSS.l2 = 47;
                AUSS.l3 = 61.5;
                AUSS.l4 = 11.5;
                AUSS.l5 = 35.5;
                AUSS.l6 = 37.7;
                AUSS.r1 = 2.5;
                AUSS.r2 = 1.5;
                AUSS.r3 = 2;
            }
            if (type.Equals("JT60"))
            {
                AUSS.b = 25.7;
                AUSS.d1 = 107.95;
                AUSS.d2 = 32;
                AUSS.d3 = 130;
                AUSS.d4 = 147.7;
                AUSS.d5 = 155;
                AUSS.d6 = 164.75;
                AUSS.d7 = 30;
                AUSS.d11 = 36;
                AUSS.j = 49;
                AUSS.l1 = 161.9;
                AUSS.l2 = 59;
                AUSS.l3 = 76;
                AUSS.l4 = 14;
                AUSS.l5 = 54.5;
                AUSS.l6 = 59.3;
                AUSS.r1 = 3.5;
                AUSS.r2 = 2;
                AUSS.r3 = 2;
            }
            return AUSS;
        }

        public double B => b;

        public double D1 => d1;

        public double D2 => d2;

        public double D3 => d3;

        public double D4 => d4;

        public double D5 => d5;

        public double D6 => d6;

        public double D7 => d7;

        public double D11 => d11;

        public double E => e;

        public double F => f;

        public double J => j;

        public double L1 => l1;

        public double L2 => l2;

        public double L3 => l3;

        public double L4 => l4;

        public double L5 => l5;

        public double L6 => l6;

        public double L7 => l7;

        public double R1 => r1;

        public double R2 => r2;

        public double R3 => r3;

        public double U => u;

        public double V => v;

        public double X => x;

        public double Y => y;
        
    }
}